<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>车辆信息</title>

<%@ include file="/wf/public/meta_wf.jsp"%>

<script src="${ctx}/gzcgwsp/resources/js/prototype.js" type="text/javascript"></script>
<script src="${ctx}/gzcgwsp/resources/js/YwUtil.js" type="text/javascript"></script>
<script src="${ctx}/resources/components/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="${ctx}/gzcgwsp/resources/css/common-ui.css" />

<script>

//保存
function save(){
			var id=document.getElementById("templateId").value;
			var content=document.getElementById("content").value;
	 	 Ext.Ajax.request({
			url: 'yw-yn-jzfqwczz-pfsn!saveReplyTemplate.action',
			method: 'POST',
			params:{
				templateId:id,
				content:content
			},
			success: function(response){
			var returnval = response.responseText;
			 if(returnval=="success"){
			   alert("保存成功");
			   document.location.href="yw-yn-jzfqwczz-pfsn!listReplyTemplate.action";
			 }
			},
			failure: function(){
				Ext.Msg.alert('系统提示', '操作失败!');
			}
			
		});

}


</script>
</head>

<body>
<form action="bus-iccard-manage.action" method="post" >
<input type="hidden" id="templateId" name="templateId" value="${template.id}"/>
  <table width="100%" border="0" cellspacing="2" cellpadding="2">
    <tr>
      <td>
        <table width="100%" border="0" cellspacing="2" cellpadding="2" class="tpl_list_blueui">
          <tr>
            <td height="20" width='50%' align="center" bordercolor="#B3D9D9">
              &nbsp;&nbsp;
              <font size="4">复函规定内容管理</font>
            </td>
          </tr>
        </table>
      </td>
    </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td>
       <table width="100%" border="1" cellspacing="2" cellpadding="2" class="tpl_list_blueui">
          <tr>
            <td height="20" bordercolor="#B3D9D9" bgcolor="#D9E8FB">
              <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="50%">&nbsp;&nbsp;<b>复函模版</b></td>
                  <td width="50%" align="center">
                    <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#D9E8FB">
                      <tr>
                        <td height="20">&nbsp;</td>
                        <td width="100">
                          <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#D9E8FB" onmouseover="this.className='tpl_btn_omover'" onmousedown="this.className='tpl_btn_omdown'" onmouseout="this.className='tpl_btn_omout'" onclick="save();">
                            <tr>
                              <td height="20" align="left"><img src="${ctx}/resources/images/icons1616/Edit.gif" />保存</td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
            </table></td>
          </tr>
      </table></td>
    </tr>
    <tr>
      <td>
		<table width="100%" border="1" cellspacing="0" cellpadding="2" class="tpl_list_blueui">
            <tr>
               <td bordercolor="#B3D9D9" colspan="2" height="25" align="right">规定内容：</td>
              <td colspan="3" bordercolor="#B3D9D9" style="padding-right:50px;">
                <textarea id="content" name="content"  cols="80" rows="15">${template.content}</textarea>
              </td>
            </tr>
             
            
	     </table>
     </td>
    </tr>

  </table>

</form>
</body>
</html>
